package decorator;

/**
 * @Author: 582895699@qq.com
 * @Desctription: 装饰器模式
 * @Date: Created in 2021/12/29 11:14
 */
public class Client {

    public static void main(String[] args) {
        Component component = new ConcreteComponent();
        component = new ConcreteDecorate(component);
        component = new ConcreteDecorate1(component);
        component.operate();
    }
}
